package com.apeli.use;

import com.apeli.spring.*;

@Component
@Scope(Scope.Type.SINGLETON)
public class UserService implements InitializingBean, BeanNameAware,IUserService {

//    @Autowired
    private OrderService orderService;

    private Integer num;

    @Override
    public void test () {
        System.out.println("test ...");
    }

    @Override
    public void afterPropertiesSet() {
        this.num = 10;
    }

    @Override
    public void setBeanName(String name) {
        System.out.println(name);
    }
}
